package com.managertrade.dao.mysql.repository;

import com.managertrade.dao.mysql.entity.SystemConfigEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SystemConfigRepository extends JpaRepository<SystemConfigEntity, Long> {

    /** 根据参数类别查询 */
    List<SystemConfigEntity> findByCategory(String category);

    /** 根据参数名查询 */
    SystemConfigEntity findByParamKey(String paramKey);
}